package com.chenyaowei.member.domain;

import com.chenyaowei.common.annotation.Excel;
import com.chenyaowei.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 成长值变化历史记录对象 cyw_growth_change_history
 *
 * @author 陈耀威
 * @date 2023-11-28
 */
public class CywGrowthChangeHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** member_id */
    @Excel(name = "member_id")
    private Long memberId;

    /** 改变的值（正负计数） */
    @Excel(name = "改变的值", readConverterExp = "正=负计数")
    private Integer changeCount;

    /** 备注 */
    @Excel(name = "备注")
    private String note;

    /** 积分来源[0-购物，1-管理员修改] */
    @Excel(name = "积分来源[0-购物，1-管理员修改]")
    private Integer sourceType;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setMemberId(Long memberId)
    {
        this.memberId = memberId;
    }

    public Long getMemberId()
    {
        return memberId;
    }
    public void setChangeCount(Integer changeCount)
    {
        this.changeCount = changeCount;
    }

    public Integer getChangeCount()
    {
        return changeCount;
    }
    public void setNote(String note)
    {
        this.note = note;
    }

    public String getNote()
    {
        return note;
    }
    public void setSourceType(Integer sourceType)
    {
        this.sourceType = sourceType;
    }

    public Integer getSourceType()
    {
        return sourceType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("memberId", getMemberId())
            .append("createTime", getCreateTime())
            .append("changeCount", getChangeCount())
            .append("note", getNote())
            .append("sourceType", getSourceType())
            .toString();
    }
}
